
function getapi(www){
	
    var api={
		// config
		config:{
			data:'open/Index/getConfig',
			whereform:'open/Index/whereFrom'   //面包屑
		},
		//登录
		login:{
			out:'adminapi/Login/logout',
			in:'adminapi/Login/login',
			Sms:'adminapi/Login/getSms',
			smsLogin:'adminapi/Login/smsLogin'
		},
    	//区域
    	area:{
    		list:'open/System/getArea',
    		add:'open/System/addArea',
    		delete:'open/System/deleteArea',
    		edit:'open/System/editArea'
    	},
    	//经费
    	finance:{
    		quota:'open/Company/companyAddOrDelete',
    		log:'open/Finance/companyLog'
    	},
    	//菜单
    	menu:{
			list: "open/System/getMenu",
			delete: "open/System/deleteMenu",
			add:"open/System/addMenu",
			edit:"open/System/editMenu"
		},
		//异常订单
		journey:{
			list:'adminapi/Order/getExceptionOrder',
			dispose:'adminapi/Order/dealException' ,  //处理 
		},
		//北斗
		beidou:{
			alarm:'adminapi/order/getExceptionOrder',
			car:'open/Beidou/getCar',
			order:'open/Order/getOrder',
			getdatapath:'adminapi/beidou/getDate',
			getpath:'adminapi/Beidou/getTrack',
			
		},
		//角色
		role:{
			list: 'open/system/getRole',
			delete: "open/System/deleteRole",
			add:"open/System/addRole",
			edit:"open/System/editRole",
			menu:'open/Auth/getRoleMenu'
		},
		//账号
		user:{
			add:"adminapi/User/add",
			list: "adminapi/User/userList",
			delete: "adminapi/User/delete",
			edit:"adminapi/User/edit",
		},
		//系统配置
		setting:{
			add:"open/system/addSetting",
			list: "open/System/getSetting",
			delete: "adminapi/User/delete",
			edit:"open/system/editSetting",
		},
		//维保
		service:{
			list : "open/Plus/getMaintenance",
			delete:"open/Plus/deleteMaintenance",
			edit:"open/Plus/editMaintenance",
			add:"open/Plus/addMaintenance",
			addApprove:"open/Plus/addMaintenanceApprove",
			editApprove:"open/Plus/editMaintenanceApprove",

		},
		// 上传图片
		upimage:{
			upimage:"adminapi/Upload/uploadImg"
			},
		// 公司列表
		company:{
			list:"adminapi/Company/companyList",
			down:"adminapi/Company/downLoadCompanyList",
			add:"open/Company/addComapny",
			edit:"adminapi/Company/edit",
			delete:"adminapi/Company/delete",
			department:'open/Company/departmentList',
			department_add:'open/Company/departmentAdd',
			department_edit:'open/Company/departmentEdit',
			department_delete:'open/Company/departmentDelete',
		},
		//乘客
		passenger:{
			list:'adminapi/Passenger/passengerList',
			delete:"adminapi/Passenger/delete",
			edit:"adminapi/Passenger/edit",
			add:"adminapi/Passenger/add",
			down:"adminapi/Passenger/downLoadDriverList"
		},
		//订单
		order:{
			list:"open/Order/getOrder",
			down:"adminapi/Order/downLoadOrderList",
			redispatch:"admin/order/redispatch",
			gettrack:'admin/order/getTrack',
			stat:'open/Stat/orderStat',
			check:'open/Order/auditOrder',
			dispatch:'open/Order/dispatchOrder'
		},
		//司机
		driver:{
			list:"open/Plus/getDriver",
			down:"adminapi/driver/downLoadDriverList",
			add:"adminapi/driver/add",
			edit:"adminapi/driver/edit",
			delete:"adminapi/driver/delete",
			norelevance:'adminapi/driver/searchCar',
			relevance:'adminapi/driver/getUseCar',
			bindCar:'adminapi/driver/bindCar',
			delBindCar:'adminapi/driver/delBindCar',
			setDefaultCarP:'adminapi/driver/setDefaultCar',
			stat:'open/Stat/driverStat',
			driverel:"adminapi/order/evaluate"
		},
		// 车辆
		car:{
			list:"open/Car/getCar",
			down:"adminapi/Car/downLoadCarList",
			add:"adminapi/Car/add",
			edit:"adminapi/Car/edit",
			delete:"adminapi/Car/delete",
			brands:'open/Car/brands',
			state:'admin/car/state',
			stat:'open/Stat/carStat',
			accidentlist:'adminapi/Caraccident/accidentList',
			accidentadd:'adminapi/Caraccident/add',
			accidentedit:"adminapi/Caraccident/edit",
			accidentdelete:"adminapi/Caraccident/delete"
		},
		// 车型
		carModel:{
			typeList:"open/Plus/getCarType",
			addtype:"open/Plus/addCarType",
			edittype:"open/Plus/editCarType",
			deletetype:"open/Plus/deleteCarType"
		},
//车辆生命周期
			//划转
			cycle_transfer:{
				list:'open/Car/transferList',
				add:'open/Car/transferAdd',
				check:'open/Car/transferEdit',
				delete:'open/Car/transferDelete',
			},
			//购置
			cycle_buy:{
				list:'open/Car/buyList',
				add:'open/Car/buyAdd',
				check:'open/Car/buyCheck',
				delete:'open/Car/buyDelete',
				//上牌
				board:'open/Car/car_number_edit'
			},
			//报废
			cycle_scrap:{
				list:'open/Car/scrapList',
				add:'open/Car/scrapAdd',
				check:'open/Car/scrapCheck',
				delete:'open/Car/scrapDelete'
			},
			//拍卖
			cycle_auction:{
				list:'open/Car/sellList',
				add:'open/Car/sellAdd',
				check:'open/Car/sellCheck',
				delete:'open/Car/sellDelete'
			},
		
		
		//对账
		acc:{
			list:"adminapi/Check/index",
			detail:"adminapi/Check/detail",
			creat:"adminapi/Check/creat",
			check:"adminapi/Check/audit",
			express:'adminapi/Check/express',
			detail_cancel:"adminapi/Check/cancel"
		},
		//充值记录
		recharge:{
			list:'open/Finance/companyRechargeList'
		},
		//服务商
		facilitator:{
			list:'open/Plus/getService',
			add:"open/Plus/addService",
			edit:"open/Plus/editService",
			delete:"open/Plus/deleteService"
		},
		//年检信息
		AS:{
			list:"open/Plus/getAS",
			add:"open/Plus/addAS",
			edit:"open/Plus/editAS",
			delete:"open/Plus/deleteAS"
		},
		// 保险信息
		insurance:{
			list:"open/Plus/getInsurance",
			add:"open/Plus/addInsurance",
			edit:"open/Plus/editInsurance",
			delete:"open/Plus/deleteInsurance"
		},
		//编制管理
		compile:{
			list:"open/Plus/getCompanyStrength",
			add:"open/Plus/addCompanyStrength",
			edit:"open/Plus/eidtCompanyStrength",
			delete:"open/Plus/deleteCompanyStrength",
			audit:"open/Plus/auditCompanyStrength",
			bind:"open/Plus/bindCompanyStrength"
		},
		//分配权限
		htmls:"/html/system/getHtmls"
    }
    
    
    for(var key in api){
    	for(var key1 in api[key]){
    		if(api[key][key1]){
    			api[key][key1]=(www+"/"+api[key][key1])
    		}
    		
    	}
    }
    
    return api

}


function geturl(www){
	
    var url={
    	company:{
    		index:'html/system/company'
    	},
    	car:{
    		index:'html/car/car',
    		auditregister:"html/car/auditregister",
    		buy_index:'html/car/audit',
    		detail:'html/car/car_detail'
    	},
    	driver:{
    		index:'html/plus/driver',
    		detail:'html/plus/driver_detail',
    		add:'html/plus/driver_add'
    	},
    	passenger:{
    		index:'html/system/passenger',
    		detail:'html/system/passenger_detail'
    	},
    	order:{
    		index:'html/order/index'
    	},
    	beidou:{
    		index:'html/beidou/index'
		},
		facilitator:{
			index:'html/system/facilitator',
			add:'html/system/facilitator_add'
		},
		// 年检
		AS:{
			index:"html/plus/annual_inspection",
			add:"html/plus/annual_inspection_add",
		},
		//保险
		insurance:{
			index:"html/plus/insurance",
			add:"html/plus/insurance_add",
		},
		user:{
			index:'html/system/user',
			add:"html/system/user_add"
		}

    }
    
    
    for(var key in url){
    	for(var key1 in url[key]){
    		if(url[key][key1]){
    			url[key][key1]=(www+"/"+url[key][key1])
    		}
    		
    	}
    }
    
    return url

}